/**
 * Created by vincent on 2016/11/30.
 */
moduleMain.config(function ($stateProvider) {
    $stateProvider
        .state('login', {
            cache: false,
            url: '/login',
            templateUrl: 'templates/Login.html',
            controller: 'LoginController'
        })
        .state('sz.homepage', {
            cache: false,
            url: '/homepage/:organizationClientId',
            views: {
                'sz-main': {
                    templateUrl: 'templates/Homepage.html',
                    controller: 'HomepageController'
                }
            },
            params: {
                organizationClientId: null
            }
        })
        .state('sz.dashboardUserBadgeInfo', {
            cache: false,
            url: '/dashboardUserBadgeInfo/:organizationClientId',
            views: {
                'sz-main': {
                    templateUrl: 'templates/DashboardUserBadgeInfo.html',
                    controller: 'DashboardUserBadgeInfo'
                }
            },
            params: {
                organizationClientId: null
            }
        })
        .state('sz.dashboardLearningMapDetailReport', {
            cache: false,
            url: '/dashboardLearningMapDetailReport/:organizationClientId',
            views: {
                'sz-main': {
                    templateUrl: 'templates/DashboardLearningMapDetailReport.html',
                    controller: 'DashboardLearningMapDetailReport'
                }
            },
            params: {
                organizationClientId: null
            }
        })
        .state('sz.dashboardLearningMapAnswerSheetInfo', {
            cache: false,
            url: '/dashboardLearningMapAnswerSheetInfo',
            views: {
                'sz-main': {
                    templateUrl: 'templates/DashboardLearningMapAnswerSheetInfo.html',
                    controller: 'DashboardLearningMapAnswerSheetInfo'
                }
            }
        })
        .state('sz.dashboardLearningMapAnswerCourseInfo', {
            cache: false,
            url: '/dashboardLearningMapAnswerCourseInfo/:query/:organizationClientId',
            views: {
                'sz-main': {
                    templateUrl: 'templates/DashboardLearningMapAnswerCourseInfo.html',
                    controller: 'DashboardLearningMapAnswerCourseInfo'
                }
            },
            params: {
                query: null,
                organizationClientId: null
            }
        })

    ;

    DialogState.addState("changePassword", {
        template: "templates/ChangePasswordMgt.html",
        controller: "ChangePasswordController"
    });

    DialogState.addState("version", {
        template: "templates/Version.html",
        controller: "Version"
    });

});